<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div id="right_w"><p>当前位置：任务管理 >>任务详情</p></div>
<div class="add clear">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="add_table">
   <tr>
    <tr>
    <td width="15%"><span class="right">任务编号</span></td>
    <td width="35%">${item.taskSn}</td>
    <td width="15%"><span class="right">产品链接</span></td>
    <td width="35%"><a href="${item.shopUrl}" target="blank">${item.shopUrl}</a></td>
    </tr>
    <tr>
    <td><span class="right">发布人</span></td>
    <td>${item.user.name}</td>
    <td ><span class="right">发布时间</span></td>
    <td ><fmt:formatDate value="${item.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
    </tr>
    <tr>
    <td ><span class="right">所属平台</span></td>
    <td>
  <c:choose>
  <c:when test="${item.platform==1}"><img src="${approot}/static/images/common/taobao.jpg"/></c:when>
  <c:when test="${item.platform==2}"><img src="${approot}/static/images/common/paipai.gif"/></c:when>
  <c:otherwise>未知</c:otherwise>
  </c:choose></td>
    <td><span class="right">任务类型</span></td>
    <td>
   <c:choose>
  <c:when test="${item.type==1}">实物</c:when>
  <c:when test="${item.type==2}">虚拟</c:when>
  <c:otherwise>未知</c:otherwise>
  </c:choose></td>
    </tr>
  <tr>
    <td><span class="right">保证金</span></td>
    <td>${item.guaranty}</td>
    <td><span class="right">发布点</span></td>
    <td>${item.point} </td>
    </tr>
  <tr>
  <td><span class="right">追加点</span></td>
    <td>${item.rewardPoint}</td>
    <td ><span class="right">任务状态</span></td>
    <td ><c:choose>
  <c:when test="${item.type==0}">未接手</c:when>
  <c:when test="${item.type==1}">进行中</c:when>
  <c:when test="${item.type==2}">已完成</c:when>
  <c:otherwise>未知</c:otherwise>
  </c:choose> </td>
  </tr>
   <tr>
    <td><span class="right">发布IP</span></td>
    <td>${item.userIP}</td>
    <td><span class="right">接手人</span></td>
    <td> <c:choose>
  <c:when test="${item.receiveUser==null}">无</c:when>
  <c:otherwise>${item.receiveUser.name}</c:otherwise>
  </c:choose></td>
  </tr>
   <tr>
    <td><span class="right">接手时间</span></td>
    <td><c:choose>
  <c:when test="${!empty item.receiveTime}"><fmt:formatDate value="${item.receiveTime}" pattern="yyyy-MM-dd HH:mm:ss"/></c:when>
  <c:otherwise>无</c:otherwise>
  </c:choose></td>
    <td><span class="right">接手IP</span></td>
    <td> <c:choose>
  <c:when test="${!empty item.receiveIP}">${item.receiveIP}</c:when>
  <c:otherwise>无</c:otherwise>
  </c:choose></td>
  </tr>
 
  <tr>
  <td colspan="4" align="center">
  <input class="button_0" name="" type="button" value="返回" onclick="history.go(-1)"/>  
  </td>
  </tr>
</table>

